package com.mzx.javase.yichang;

/**
 * @Description:
 * @Date: 2022/3/14 10:58
 * @Author: MarKing
 */
public class TestCatchError extends Error{
    public TestCatchError() {
    }

    public TestCatchError(String message) {
        super(message);
    }

    public TestCatchError(String message, Throwable cause) {
        super(message, cause);
    }

    public TestCatchError(Throwable cause) {
        super(cause);
    }

    public TestCatchError(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public static void main(String[] args) {
        try {
            throw new TestCatchError("test catch error");
        } catch (TestCatchError testCatchError) {
            System.out.println("捕获停止");
            testCatchError.printStackTrace();
        }
        System.out.println(".........................");
    }
}
